package com.liyang.springcloud.service.controller;

import com.liyang.springcloud.service.IMessageProviderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @BelongsProject: cloud-2024
 * @BelongsPackage: com.liyang.springcloud.service.controller
 * @Author: liyang
 * @CreateTime: 2024-01-02  14:48
 * @Description: 消息生产者
 * @Version: 1.0
 */
@RestController
@Slf4j
public class SendMessageController {

    @Resource
    private IMessageProviderService iMessageProviderService;

    /**
     * @description: 推送消息
     * @author: liyang
     * @date: 2024/1/2 14:49
     * @return: java.lang.String
     **/
    @GetMapping(value = "/sendMessage")
    public String sendMessage() {
        return iMessageProviderService.send();
    }
}
